Skip to main content

VOID Payment

This API is used to void an existing payment transaction. It is identified by a referenceId and must be associated with the same program and customerId.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription
methodString
RPC method name (e.g., TransactionService.Payment)
idString
Unique ID for the request
params.apiObject
API authentication block
params.api.signatureString
Encrypted signature
params.api.keyIdString
Device ID used for authentication
params.api.credentialString
Credential string (e.g., Basic Auth)
params.api.apiKeyString
API Key
params.payload.typeString
Should be VOID
params.payload.productString
Product type (e.g., PL)
params.payload.programString
Program ID
params.payload.referenceIdString
Reference ID of original transaction
params.payload.customerIdString
Customer ID
params.payload.notesString
Description or reason for voiding the payment

curl --location 'http://localhost:5010/PL/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{
"method": "TransactionService.Payment",
"id": "1",
"params": {
"api": {
"signature": "{{signature}}",
"keyId": "{{DeviceID}}",
"credential": "{{Credential}}",
"apiKey": "{{ApiKey}}"
},
"payload": {
"type": "VOID",
"product": "PL",
"program": "100000000045001",
"referenceId": "REF100223457",
"customerId": "100000000045001",
"notes": "void payment"
}
}
}'

Body

{
"method": "TransactionService.Payment",
"id": "1",
"params": {
"api": {
"signature": "{{signature}}",
"keyId": "{{DeviceID}}",
"credential": "{{Credential}}",
"apiKey": "{{ApiKey}}"
},
"payload": {
"type": "VOID",
"product": "PL",
"program": "100000000045001",
"referenceId": "REF100223457",
"customerId": "100000000045001",
"notes": "void payment"
}
}
}

Response: 200

Payload Parameters
ParameterDescription
StatusString
Status of the void request (e.g., COMPLETED)
TransactionIDString
Unique ID for the void transaction
referenceIDString
New reference ID assigned to the void
isPartialBoolean
Indicates if the void was partially successful
{
"id": "1",
"result": {
"status": "COMPLETED",
"TransactionID": "19472113",
"referenceID": "1746442043379",
"isPartial": false
},
"jsonrpc": "2.0"
}